package com.zx.system.block.param;

import com.zx.validation.annotation.ParameterValidation;
import com.zx.validation.enums.ValidateRulesEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * description: 修改密码参数 <br>
 * create: 2024-10-29 14:43
 * </p>
 *
 * @author zhou  xun
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ChangePasswordParam implements Serializable {
    /**
     * 旧密码
     */
    @ParameterValidation(index = 0, desc = "旧密码", rules = {ValidateRulesEnum.NOT_NULL, ValidateRulesEnum.LENGTH}, length = "6~20")
    private String oldPassword;

    /**
     * 新密码
     */
    @ParameterValidation(index = 0, desc = "新密码", rules = {ValidateRulesEnum.NOT_NULL, ValidateRulesEnum.LENGTH}, length = "6~20")
    private String newPassword;
}